import {CategoryForm} from "@/api/category/types";

/**
 * 查询对象类型
 */
export interface ArticleQuery extends PageQuery {
  title?: string;
  category_id?: number;
  is_hid?: number;
  time?:[];
}

/**
 * 分页对象
 */
export interface ArticlePage {
  id?: number;
  title?: string;
  category_id?: number;
  is_hid?: number;
  is_release?: number;
  sort?: number;
  author?: string;
  category?:CategoryForm;
  created_at?: Date;
}

/**
 * 用户表单类型
 */
export interface ArticleForm {
  id?: number;
  category_id?: number;
  digest?: string;
  cover_img?: string;
  content?: string;
  title?: string;
  is_release?: number;
  type?: number;
  sort?: number;
  is_hid?: number;
  author?: string;
}
